package com.rui.visitor.obj;

import lombok.Data;

import java.util.Random;

/**
 * @Description: 抽象元素(员工)
 * @Author: ZhangRui
 * @Date: 2023/3/3 17:07
 * @Version: 1.0
 */
@Data
public abstract class Employee {

    private String name;
    private Integer kpi;

    public Employee(String name) {
        this.name = name;
        this.kpi = new Random().nextInt(10);
    }

    public abstract void accept(IVisitor visitor);
}
